#!/bin/env bash

HI=3
WI=7
####color: 40-black, 41-deep red, 42-green, 43-yellow, 44-blue, 45-purple, 46-deep green, 47-white
COL1=5
COL2=1

#search "echo \033"
for i in {1..8};do
	yushu=$[i%2]
	for j in `seq 1 $HI`;do
		for k in {1..8};do
			if [ $[k%2] -eq 1 ];then
				[ $yushu -eq 1 ] && echo -e "\033[1;4${COL1}m`printf "%${WI}s"`\033[0m\c" \
					|| echo -e "\033[1;4${COL2}m`printf "%$[$WI]s"`\033[0m\c"
			else
				[ $yushu -eq 1 ] && echo -e "\033[1;4${COL2}m`printf "%$[$WI]s"`\033[0m\c" \
					|| echo -e "\033[1;4${COL1}m`printf "%$[$WI]s"`\033[0m\c"
			fi
		done
		echo ""
	done
done
